home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Printing
/
Errors
/
PrintingError.h
< prev
Wrap
Text File
|
2000-06-23
|
380b
|
24 lines
// PrintingError.h
#ifndef PrintingError_h
#define PrintingError_h
#ifndef OSError_h
#include "OSError.h"
#endif
class PrintingError: public OSError
{
public:
explicit PrintingError( OSErr e ) : OSError( e ) {}
PrintingError( OSError& e ) : OSError( e ) {}
};
inline void ThrowPrintingError( OSErr e )
{
if ( e != noErr )
throw PrintingError(e);
}
#endif